﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace PromotionApp.Utility
{
    public static class ConfigurationHelper
    {
        public static string ConnectionString
        {
            get
            {
                //return ConfigurationManager.ConnectionStrings["TMC.Webboard"].ConnectionString;
                return @"Data Source=SQL01;Initial Catalog=DBTMC_Webboard;User ID=sa;Password=P@ssw0rd";
            }
        }

        public static string DateDisplayFormat
        {
            get
            {
                //return ConfigurationManager.AppSettings["DateDisplayFormat"];
                return "dd/MM/yyyy";
            }
        }

        public static string DateTimeDisplayFormat
        {
            get
            {
                //return ConfigurationManager.AppSettings["DateTimeDisplayFormat"];
                return "dd MMM yyyy HH:mm:ss";
            }
        }

        public static string DomainName
        {
            get
            {
                // return ConfigurationManager.AppSettings["DomainName"];
                return "Yellowathome.com";
            }
        }

        public static int ImageSize
        {
            get
            {
                // return int.Parse(ConfigurationManager.AppSettings["ImageSize"]);
                return 204800;
            }
        }

        public static string UploadImageFolder
        {
            get
            {
                // return ConfigurationManager.AppSettings["UploadImageFolder"];
                return "UploadImages";
            }
        }

        public static string DomainNameTitle
        {
            get
            {
                //  return ConfigurationManager.AppSettings["DomainNameTitle"];
                return "Yellow Thai";
            }
        }
    }    
}